package com.xxx.feignclients;

import com.xxx.fallback.MediaFeignClientFallbackFallback;
import com.xxx.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-media",fallbackFactory = MediaFeignClientFallbackFallback.class)
public interface MediaFeignClient {
    @RequestMapping(value = "/mediaFile/get_mediafiles_by_courseid/{courseId}", method = RequestMethod.GET)
    public JSONResult getByCourseId(@PathVariable("courseId") Long courseId);

}
